﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MamiMasterPage.master" AutoEventWireup="true"
    CodeFile="ArticleNew.aspx.cs" Inherits="Administration_ArticleNew" Culture="ro-ro" %>

<%@ Register Src="~/CustomControls/ImageEditor.ascx" TagName="ImageEditor" TagPrefix="mami" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentHolder" runat="Server">
    <div id="breadcrumbs">
        <a href="default.aspx">Administrare</a>
        <asp:Literal ID="litNav" runat="server" Visible="true"></asp:Literal>
    </div>
    <div class="center red bold">
        <asp:Literal ID="litMessage" runat="server" /></div>
    <div class="container">
        <table cellpadding="0" cellspacing="4" border="0" width="100%">
            <tr>
                <td class="style1">
                    Titlu
                </td>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" Width="100%" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Camp obligatoriu"
                        ControlToValidate="txtTitle" Display="Dynamic" ValidationGroup="grpNew" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Continut
                </td>
                <td colspan="2">
                    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                    </cc1:ToolkitScriptManager>
                    <cc2:Editor ID="htmlContent" runat="server" Width="100%" Height="500" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Camp obligatoriu"
                        ControlToValidate="htmlContent" Display="Dynamic" ValidationGroup="grpNew" />
                </td>
            </tr>
            <tr id="trParent" runat="server">
                <td>
                    Categorie parinte
                </td>
                <td>
                    <asp:DropDownList ID="ddlParentCateg" runat="server" Width="100%">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Data postarii
                </td>
                <td>
                    <asp:TextBox ID="txtDatePosted" runat="server" Enabled="false" />
                    <asp:Image ID="imgCal" ImageUrl="~/Images/CalendarImg.png" runat="server" />
                    <cc1:CalendarExtender ID="calDatePosted" runat="server" TargetControlID="txtDatePosted"
                        Format="MM/dd/yyyy" PopupButtonID="imgCal">
                    </cc1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Meta Descriere
                </td>
                <td>
                    <asp:TextBox ID="txtWebDesc" runat="server" TextMode="MultiLine" Rows="2" Width="100%" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Cuvinte cheie
                </td>
                <td>
                    <asp:TextBox ID="txtKeys" runat="server" TextMode="MultiLine" Rows="2" Width="100%" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Incarca imagine
                </td>
                <td>
                    <asp:FileUpload ID="uplImage" runat="server" Width="50%" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                </td>
                <td>
                    <asp:CheckBox ID="chApproved" runat="server" Text="Aprobat pentru publicare" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                </td>
                <td>
                    <asp:CheckBox ID="chIsFeatured" runat="server" Text="Apare pe prima pagina" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Imagine care apare pe prima pagina
                </td>
                <td>
                    <asp:FileUpload ID="uplFeatured" runat="server" Width="50%" />
                </td>
            </tr>
            <tr>
                <td class="style1">
                </td>
                <td>
                    <asp:Button ID="btnInsert" runat="server" Text="Adauga noul articol" OnClick="btnInsert_Click"
                        ValidationGroup="grpNew" />
                </td>
            </tr>
        </table>
    </div>
    <asp:Button ID="btnAddImage" runat="server" Text="Adauga imagine" OnClick="btnAddImage_Click" /><br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <mami:ImageEditor ID="imageEditor" runat="server" Visible="false" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SiteStructure" runat="Server">
</asp:Content>
